package com.midea.ai.air.ui.home.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.RelativeLayout;

import com.midea.ai.air.R;
import com.midea.ai.air.common.BaseFragment;
import com.midea.ai.air.common.ConsVal;
import com.midea.ai.air.utils.JumpUtils;

/**
 * Created by ouyangdi on 2016/4/25.
 * 添加家电->家电设置Fragment
 */
public class AddDeviceSetFragment extends BaseFragment {
    private EditText mInputName;
    private RelativeLayout mLayoutSelect;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_add_device_set, container, false);
        initViews(view);
        return view;
    }

    private void initViews(View view) {
        mInputName = (EditText) view.findViewById(R.id.input_device_name);
        mLayoutSelect = (RelativeLayout)view.findViewById(R.id.layout_select_room);
        mLayoutSelect.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                JumpUtils.toPage(getActivity(), getString(R.string.air_add_device_select_room), getString(R.string.action_bar_back), ConsVal.ACTIVITY_TAG_ADD_DEVICE_SELECT_ROOM);
            }
        });
    }
}
